/**
 * 
 */
package com.cqan.service.account.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cqan.dao.account.PermissionDao;
import com.cqan.entity.account.Permission;
import com.cqan.service.account.PermissionService;
import com.cqan.service.impl.EntityServiceImpl;

/**
 * @author slaton
 * 
 *         上午11:30:30
 */
@Service("permissionService")
public class PermissionServiceImpl extends
		EntityServiceImpl<Permission, String, PermissionDao> implements
		PermissionService {

	@Override
	@Autowired
	public void setEntityDao(PermissionDao entityDao) {

		this.entityDao = entityDao;
	}

	/**
	 * @param authoritys
	 * @param type
	 * @return
	 * @see com.cqan.service.account.PermissionService#getMenusByAuthority(java.util.List,
	 *      java.lang.Integer)
	 */
	@Override
	public List<Permission> getMenusByAuthority(List<String> authoritys) {
		
		return entityDao.getMenusByAuthority(authoritys);
	}

}
